package nirvana.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Joseph.Li
 * @author joseph.li@king-v.com
 * Created in 2022-07-09 23:10
 */
@Data
@Component
@ConfigurationProperties(prefix="security.brush")
public class PreventBrushProperties {

    /**
     * 时间段内最大刷新次数
     */
    private Integer maxHits=5;

    /**
     * 时间周期
     */
    private Integer brushTime=3000;
}
